//
// Created by heqian on 17-10-14.
//

#ifndef SVGSAVE_MAINWINDOW_H
#define SVGSAVE_MAINWINDOW_H

#include <gtkmm.h>
#include <string>

using namespace std;
using namespace Gtk;

class MainWindow : public ApplicationWindow {
public:
    MainWindow();


protected:
    Box mBox;
    TextView mText;
    ButtonBox mButtonBox;
    Button mButtonExit;
    Button mButtonSave;
    string mSavePath;
    Button mButtonSaveAs;
    bool mIsChangde;

    void on_exit_clicked();

    void on_save_clicked();

    void on_saveAs_clicked();

    void saveToFile();

    bool on_delete_event(GdkEventAny *any_event) override;

    void on_text_changed();

    const char *const *getIcoData() const;
};


#endif //SVGSAVE_MAINWINDOW_H
